﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Product.aspx.cs" Inherits="FeiHongWeb.Admin.Product" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Styles/skin.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            height: 36px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table class="gv_css" cellspacing="1" cellpadding="3" width="96%" align="center">
    <tr>
    <td class="style1">
        <asp:Button runat="server"  Text="新增人才记录" CausesValidation="False" onclick="Unnamed1_Click"/>
    </td>
    </tr>
        <tr>
            <td class="UserTableRow1">
                <asp:GridView ID="gv_product" runat="server" Width="100%" AutoGenerateColumns="False"
                    OnRowCommand="gv_product_RowCommand">
                    <RowStyle CssClass="row" />
                    <AlternatingRowStyle CssClass="alterRow" />
                    <Columns>
                        <asp:TemplateField HeaderText="编号">
                            <ItemTemplate>
                                <%#Eval("Id")%>
                            </ItemTemplate>
                            <HeaderStyle Width="10%"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="姓名">
                            <ItemTemplate>
                                <%#Eval("VolunteerName")%>
                            </ItemTemplate>
                            <HeaderStyle Width="25%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="人才缩略图">
                            <ItemTemplate>
                                <img src="<%# "../Upload/Volunteer/"+  Eval("PhotoPath") %>" border="0" width="90px" height="90px" />
                            </ItemTemplate>
                            <HeaderStyle Width="25%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="人才描述">
                            <ItemTemplate>
                                <%# LongQuanWeb.App_Code.Common.GetTitle(LongQuanWeb.App_Code.Common.htmlInputText(Eval("Description").ToString().Trim()), 80)%>
                            </ItemTemplate>
                            <HeaderStyle Width="15%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="操作" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:Button ID="del" CommandName="del" CommandArgument='<%#Eval("Id")%>' runat="server"
                                    Text="删除" OnClientClick='return confirm("确认要删除吗？")' />
                                <asp:Button ID="up" CommandName="up" CommandArgument='<%#Eval("Id")%>' runat="server"
                                    Text="修改" />
                            </ItemTemplate>
                            <HeaderStyle Width="30%"></HeaderStyle>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb"
                    CurrentPageIndex="1" EnableTheming="true" FirstPageText="首页" LastPageText="尾页"
                    NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged" PageSize="10" PrevPageText="上一页"
                    ShowPageIndexBox="Never" UrlPaging="true" Width="100%">
                </webdiyer:AspNetPager>
            </td>
        </tr>
    </table>
    </br>
    </form>
</body>
</html>
